/*    */ package com.yss.sofa.cml.print;
/*    */ 
/*    */ import com.yss.sofa.cml.color.Color;
/*    */ import com.yss.sofa.cml.text.FontKey;
/*    */ import com.yss.sofa.cml.text.TextLine;
/*    */ import com.yss.sofa.cml.type.OverflowEnum;
/*    */ import com.yss.sofa.cml.type.RotationEnum;
/*    */ import java.util.List;
/*    */ 
/*    */ public abstract class PrintTextParagraph extends PrintCell
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   protected FontKey fontKey;
/*    */   protected Color forecolor;
/*    */   protected RotationEnum rotation;
/*    */   protected Integer rotationValue;
/*    */   protected OverflowEnum overflow;
/*    */   protected List<TextLine> textLines;
/*    */ 
/*    */   public RotationEnum getRotation()
/*    */   {
/* 25 */     return this.rotation;
/*    */   }
/*    */ 
/*    */   public Integer getRotationValue() {
/* 29 */     return this.rotationValue;
/*    */   }
/*    */ 
/*    */   public FontKey getFontKey() {
/* 33 */     return this.fontKey;
/*    */   }
/*    */ 
/*    */   public Color getForecolor() {
/* 37 */     return this.forecolor;
/*    */   }
/*    */ 
/*    */   public OverflowEnum getOverflow() {
/* 41 */     return this.overflow;
/*    */   }
/*    */ 
/*    */   public void setFontKey(FontKey fontKey) {
/* 45 */     this.fontKey = fontKey;
/*    */   }
/*    */ 
/*    */   public void setForecolor(Color forecolor) {
/* 49 */     this.forecolor = forecolor;
/*    */   }
/*    */ 
/*    */   public void setOverflow(OverflowEnum overflow) {
/* 53 */     this.overflow = overflow;
/*    */   }
/*    */ 
/*    */   public void setRotation(RotationEnum rotation) {
/* 57 */     this.rotation = rotation;
/*    */   }
/*    */ 
/*    */   public void setRotationValue(Integer rotationValue) {
/* 61 */     this.rotationValue = rotationValue;
/*    */   }
/*    */ 
/*    */   public String getPrintText() {
/* 65 */     if (this.textLines != null) {
/* 66 */       StringBuilder buff = new StringBuilder();
/* 67 */       for (TextLine textLine : this.textLines) {
/* 68 */         if (!textLine.isFirstLine()) {
/* 69 */           buff.append("\n");
/*    */         }
/* 71 */         buff.append(textLine.getChars());
/*    */       }
/* 73 */       return buff.toString();
/*    */     }
/* 75 */     return null;
/*    */   }
/*    */ 
/*    */   public List<TextLine> getTextLines() {
/* 79 */     return this.textLines;
/*    */   }
/*    */ 
/*    */   public void setTextLines(List<TextLine> textLines) {
/* 83 */     this.textLines = textLines;
/*    */   }
/*    */ 
/*    */   public String toString() {
/* 87 */     return new StringBuilder().append("XY[x=").append(this.x).append(",y=").append(this.y).append("] SIZE[width=").append(this.width).append(",height=").append(this.height).append("] TEXT[").append(getPrintText()).append("]").toString();
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.print.PrintTextParagraph
 * JD-Core Version:    0.6.0
 */